import model.User3;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test3 {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("annotate-spring-config.xml");
        User3 user3 = context.getBean("user3",User3.class);

        user3.preDestroy();
    }
}
